
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'page-form',
    'type' => 'horizontal',
    'enableAjaxValidation' => false,
    'enableClientValidation' => true,
    'clientOptions' => array(
	'validateOnSubmit' => true
    )
	));
?>

<p class="help-block">Fields with <span class="required">*</span> are required.</p>

<?php echo $form->errorSummary($model); ?>

<?php echo $form->textFieldRow($model, 'name', array('class' => 'span5', 'maxlength' => 255)); ?>

<?php echo $form->textFieldRow($model, 'alias', array('class' => 'span5', 'maxlength' => 255)); ?>

<?php echo $form->textFieldRow($model, 'title', array('class' => 'span5', 'maxlength' => 255)); ?>

<?php echo $form->textFieldRow($model, 'keywords', array('class' => 'span5', 'maxlength' => 255)); ?>

<?php //echo $form->textAreaRow($model, 'description', array('class' => 'span5', 'maxlength' => 255));  ?>
<div class="control-group ">
    <label class="control-label" for="Page_keywords">Description</label>
    <div class="controls">
	<?php
	$this->widget('ext.tinymce.TinyMce', array('model' => $model,
	    'attribute' => 'description',
	    'fileManager' => array(
		'class' => 'ext.elFinder.TinyMceElFinder',
		'connectorRoute' => 'filemanager/connector'),
	    'htmlOptions' => array('rows' => 6, 'cols' => 60)
	));
	?>
	<span class="help-inline error" id="Page_keywords_em_" style="display: none"></span>
    </div>
</div>



<?php //echo $form->textFieldRow($model, 'layout', array('class' => 'span5', 'maxlength' => 45));    ?>

<?php echo $form->dropDownListRow($model, 'status', array(1 => 'Active', 0 => 'Deactive'), array('class' => 'span5')); ?>
<div class="control-group ">
    <div class="controls">
	<input type="submit" name="submit" value="Save" class="btn btn-large btn-info post-blog"/>
    </div>
</div>
<?php $this->endWidget(); ?>